package single_game.logic.race_simulator.race_team.my_riders_actions;

import main.CyclingManager;
import single_game.logic.race_simulator.race_team.RaceRider;

public class MyRiderSlowDown {
	
	public static void simulateRiderAction(RaceRider rider) {
		if (rider.getEnergy() > 10.0) {
			rider.setAction("Maintain Position");
			rider.setPower(50);
			System.out.println("MyTEAM: Slow -> Maintain "+CyclingManager.getInstance().cyclists.get(rider.getCyclistId()).getSurname());
		}		
	}
}
